var mqtt = require('mqtt');

//create client
var client = mqtt.createClient(1883, "localhost");
client.publish('presence', ' 3');
client.publish('presence', ' 3');